
\documentclass{article}
\usepackage{fancyvrb}
\usepackage{color}
\usepackage[ascii]{inputenc}



\makeatletter
\def\PY@reset{\let\PY@it=\relax \let\PY@bf=\relax%
    \let\PY@ul=\relax \let\PY@tc=\relax%
    \let\PY@bc=\relax \let\PY@ff=\relax}
\def\PY@tok#1{\csname PY@tok@#1\endcsname}
\def\PY@toks#1+{\ifx\relax#1\empty\else%
    \PY@tok{#1}\expandafter\PY@toks\fi}
\def\PY@do#1{\PY@bc{\PY@tc{\PY@ul{%
    \PY@it{\PY@bf{\PY@ff{#1}}}}}}}
\def\PY#1#2{\PY@reset\PY@toks#1+\relax+\PY@do{#2}}

\def\PY@tok@gu{\let\PY@bf=\textbf}
\def\PY@tok@gs{\let\PY@bf=\textbf}
\def\PY@tok@cm{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
\def\PY@tok@gp{\let\PY@bf=\textbf}
\def\PY@tok@ge{\let\PY@it=\textit}
\def\PY@tok@cs{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
\def\PY@tok@cp{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@gh{\let\PY@bf=\textbf}
\def\PY@tok@s2{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@s1{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@nc{\def\PY@tc##1{\textcolor[rgb]{0.17,0.57,0.69}{##1}}}
\def\PY@tok@si{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@sh{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@sc{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@c1{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
\def\PY@tok@kc{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@c{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
\def\PY@tok@sx{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@err{\def\PY@bc##1{\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{##1}}}
\def\PY@tok@kd{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@ss{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@sr{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@k{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@kn{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@kr{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@s{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@kp{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@kt{\def\PY@tc##1{\textcolor[rgb]{0.17,0.57,0.69}{##1}}}
\def\PY@tok@ow{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
\def\PY@tok@sb{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@se{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}
\def\PY@tok@sd{\def\PY@tc##1{\textcolor[rgb]{0.64,0.08,0.08}{##1}}}

\def\PYZbs{\char`\\}
\def\PYZus{\char`\_}
\def\PYZob{\char`\{}
\def\PYZcb{\char`\}}
\def\PYZca{\char`\^}
\def\PYZsh{\char`\#}
\def\PYZpc{\char`\%}
\def\PYZdl{\char`\$}
\def\PYZti{\char`\~}
% for compatibility with earlier versions
\def\PYZat{@}
\def\PYZlb{[}
\def\PYZrb{]}
\makeatother


\begin{document}

\section*{}

\begin{Verbatim}[commandchars=\\\{\}]
\PY{k}{public} \PY{k}{class} \PY{n+nc}{WidgetComposition} \PY{p}{:} \PY{n}{IWidget}
\PY{p}{\PYZob{}}
	\PY{k}{private} \PY{n}{IList}\PY{p}{<}\PY{n}{IWidget}\PY{p}{>} \PY{n}{children}\PY{p}{;}
	\PY{k}{public} \PY{k+kt}{int} \PY{n}{Width} \PY{p}{\PYZob{}}
		\PY{k}{get} \PY{p}{\PYZob{}} \PY{k}{return} \PY{n}{children}\PY{p}{.}\PY{n}{Sum}\PY{p}{(}\PY{n}{x} \PY{p}{=}\PY{p}{>} \PY{n}{x}\PY{p}{.}\PY{n}{Width}\PY{p}{)}\PY{p}{;} \PY{p}{\PYZcb{}}
	\PY{p}{\PYZcb{}}
\PY{p}{\PYZcb{}}
\end{Verbatim}

\end{document}
